@import "./transition";
@import "./sidebar";
@import "./reset";
@import "./dark";
@import "./protable";

/* 声明全局字体样式 */
@font-face {
  font-family: "siyuan"; /* 字体名称 */
  src: url("@/assets/ifont/siyuan.ttf"); /* 字体文件相对路径 */
}

@font-face {
  font-family: "DINPro";
  src: url("@/assets/ifont/DINPro-Bold.ttf");
}

@font-face {
  font-family: "DINLight";
  src: url("@/assets/ifont/DINPro-Light.ttf");
}

@font-face {
  font-family: "DINAlt";
  src: url("@/assets/ifont/DINPro-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "YOUSHE";
  src: url("@/assets/ifont/YOUSHE.ttf");
}

.app-container {
  padding: 10px 10px 20px 10px;

  .text-wrap {
    white-space: pre-wrap;
    word-break: break-all;
  }
}

.search-container {
  padding: 18px 0 0 20px;
  margin-bottom: 10px;
  background-color: var(--el-bg-color-overlay);
  // border: 1px solid var(--el-border-color-light);
  border-radius: 4px;
  // box-shadow: var(--el-box-shadow-light);
  box-shadow: 0px 0px 12px rgba(3, 8, 72, 0.08);

  .el-form-item--default .el-form-item__label {
    // width: 90px !important;
    justify-content: start;
    padding: 0 7px 0 0;
  }
  .el-range-editor.el-input__wrapper {
    width: 489px !important;
  }
}

.table-container > .el-card__header {
  padding: calc(var(--el-card-padding) - 8px) var(--el-card-padding);
  overflow: hidden;
}

.table-container {
  border: none !important;
  box-shadow: 0px 0px 12px rgba(3, 8, 72, 0.08);
  .el-table--default .cell {
    padding: 0 8px;
  }
}

.table-container .el-card__body .el-table tr td:nth-last-child(1) .el-tooltip__trigger svg{
  margin-right: 0px;
}
.table-container .el-card__body .el-table tr td:nth-last-child(1) .el-tooltip__trigger+.el-tooltip__trigger {
  margin-left: 10px;
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32 160 255);
  }
}

.navUserLoginout .el-dropdown-menu__item {
  font-size: 12px;
}

.el-button svg {
  margin-right: 4px;
  font-size: 13px;
}

.el-dialog {
  border-radius: 5px !important;
  .el-dialog__header {
    padding-bottom: 14px;
    margin-right: 0;
    border-bottom: 1px solid #eee;
    .el-dialog__title {
      font-size: 16px;
    }
  }
  .el-dialog__body{
    // min-height: 400px;
    // max-height: calc(100vh - 120px - 40px - 40px);overflow-y: auto;padding: 20px;
  }
}
.pt10_self {
  .el-dialog__body {
    padding-top: 15px;
  }
}

/* 一般浏览器的不要太小，容易看不见 */
::-webkit-scrollbar {
  height: 9px;
  width: 9px;
}
::-webkit-scrollbar-thumb {
  border-radius: 0px;
  background: rgba(199,201,204,0.4);
}
::-webkit-scrollbar-track {
  border-radius: 0;
  background: transparent;
}

.bc-fff {
  background-color: #fff;
}

// 树形选择的默认颜色修改
.el-tree-node:focus > .el-tree-node__content,
.el-tree-node__content:hover {
  background-color: rgb(236, 245, 255) !important;
  color: var(--el-menu-active-color) !important;
  border-radius: 6px;
  .el-tree-node__expand-icon {
    color: var(--el-menu-active-color);
  }
}
.el-tree-virtual-list {
  .el-tree-node__content {
    border-bottom: 1px dashed rgb(236, 245, 255) !important;
  }
}
.oneLine {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.el-input__wrapper {
  position: relative;

  .el-input__suffix {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
  }
}

.el-table .el-popper {
  background: #fff !important;
  border-color: #000 !important;
  color: #333 !important;
  max-width: 75%;
  .el-popper__arrow:before {
    border-color: #000 !important;
    background: #fff !important;
    color: #333 !important;
  }
}

.span-huanhang-detail {
  word-break: normal;
  width: auto;
  display: block;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow: hidden;
}

.dashboardWindows {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 20px 0 20px;
  .menu-area {
    /*设置为grid网格布局*/
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 22% 22% 22% 22%;
    grid-gap: 12px;
    justify-content: center;
    .menuCard {
      padding-top: 35px;
      border-radius: 16px;
      text-align: center;
      height: 120px;
      cursor: pointer;
      background-image: linear-gradient(
        180deg,
        #2c92fb 0%,
        #2c92fb 53%,
        #33aaff 100%
      );

      svg {
        font-size: 30px;
        color: #fff;
      }
      .title {
        margin-top: 10px;
        padding-bottom: 30px;
        font-size: 15px;
        color: #fff;
      }
    }
  }
}

.el-icon-close {
  background-color: #2979ff;
  color: #fff;
  border-radius: 4px;
  position: absolute;
  right: 13px;
  top: 13px;
  cursor: pointer;
  font-size: 16px;
}

.el-statistic__number {
  font-family: DINAlt;
}

.el-table--border th.el-table__cell {
  background-color: #f5f7fa !important;
  padding: 10px 0;
  text-align: center;
}

.editElTable {
  .el-table__cell {
    padding: 10px 0 0;
  }
  .el-form-item {
    margin-bottom: 13px;
    .el-form-item__error {
      font-size: 11px;
    }
  }
}

.el-popper.is-customized {
  /* Set padding to ensure the height is 32px */
  padding: 6px 12px;
  background: linear-gradient(90deg, rgb(159, 229, 151), rgb(204, 229, 129));
}

.el-popper.is-customized .el-popper__arrow::before {
  background: linear-gradient(45deg, #b2e68d, #bce689);
  right: 0;
}

.el-table__body-wrapper .el-table-column--selection > .cell,
.el-table__header-wrapper .el-table-column--selection > .cell {
  justify-content: center;
}

.red_text {
  color: #f56c6c !important;
}
.yellow_text {
  color: #ffd300 !important;
}
.green_text {
  color: rgb(29, 233, 182) !important;
}
.red_back {
  background-color: #f56c6c !important;
}
.yellow_back {
  background-color: #ffd300 !important;
}
.green_back {
  background-color: rgb(29, 233, 182) !important;
}
.el-popup-parent--hidden {
 width: 100% !important;
}
.el-tooltip__trigger:focus-visible {
  outline: unset;
}

/*或者是下面这个*/
.el-tooltip__trigger:first-child:focus-visible {
  outline: unset;
}

.el-table {
  --el-table-current-row-bg-color: var(--el-color-primary-light-8) !important;
  --el-table-row-hover-bg-color: var(--el-color-primary-light-8) !important;
  --el-table-header-text-color: var(--el-text-color-regular) !important;
}

.left_meta {
  --el-menu-base-level-padding: 10px;
  --el-menu-level-padding: 10px;
}

.el-table .cell {
  word-break: break-word !important;
}

.el-notification__content {
  p {
    word-break: break-all !important;
  }
}

// 滚动条加粗
.el-scrollbar .el-scrollbar__bar.is-vertical {
  width: 9px;
  top: 1px;
  right: 1px;
  border-radius: 0px;
}
.el-scrollbar .el-scrollbar__bar>div {
  opacity: 0.4;
}
 
.el-scrollbar .el-scrollbar__bar.is-horizontal {
  height: 9px;
  left: 1px;
  border-radius: 0px;
  bottom: 0px;
}
//解决滚动条遮挡内容
.el-scrollbar__view .el-scrollbar__wrap {
  overflow: auto;
  height: calc(100% - 9px) !important;
}

.closeItem .el-message-box__input {
  padding-top: 7px;
}
.el-input.is-disabled .el-input__inner {
  -webkit-text-fill-color: #444 !important;
}
.el-input.is-disabled .el-input__inner::placeholder {
  -webkit-text-fill-color: #a8abb2 !important;
}

.el-textarea.is-disabled .el-textarea__inner {
  -webkit-text-fill-color: #444 !important;
}

.el-textarea.is-disabled .el-textarea__inner::placeholder {
  -webkit-text-fill-color: #a8abb2 !important;
}


                